   package com.example.everying.service.pay;

   import com.alibaba.fastjson2.JSONObject;
   import com.baomidou.mybatisplus.extension.service.IService;
   import com.example.everying.model.dto.pay.TransferBatchEntityDto;
   import com.example.everying.model.dto.pay.TransferCallbackResult;
   import com.example.everying.model.dto.pay.TransferToUserResponse;
   import com.example.everying.model.entity.pay.TransferBatchEntity;
   import com.example.everying.utils.Result;
   import com.google.gson.JsonObject;
   import jakarta.servlet.http.HttpServletRequest;
   import org.springframework.transaction.annotation.Transactional;

   import java.io.IOException;

   public interface TransferBatchService extends IService<TransferBatchEntity> {


      @Transactional
      Result<?> createTransferBatch(TransferBatchEntityDto dto);

      JSONObject transferCallback(HttpServletRequest request) throws IOException;

      void handleFailedTransfer(TransferBatchEntity batch);

      void handleSuccessfulTransfer(TransferBatchEntity batch, TransferToUserResponse response);

      // 确认一下用户有没有点击确认,要是没有就退款
      void confirmTransfer(String batchNo);

//       JSONObject transferCallback(TransferCallbackResult request) throws IOException;
   }
   